<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C++ API Reference: SDK/all/include/JCMessageChannelCallback.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C++ API Reference
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ca6309d378ceffb9970caf11a0592736.html">SDK</a></li><li class="navelem"><a class="el" href="dir_df301a42bdb8674e37034074c8aa490e.html">all</a></li><li class="navelem"><a class="el" href="dir_2a90b483303ce0af7319f0f0fd0c54ed.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">JCMessageChannelCallback.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;JCMessageChannelConstants.h&quot;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;JCMessageChannelItem.h&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;JCMessageChannelConversation.h&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_j_c_message_channel_callback.html">   14</a></span>&#160;<span class="keyword">class </span>JCSDK_API <a class="code" href="class_j_c_message_channel_callback.html">JCMessageChannelCallback</a> {</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="class_j_c_message_channel_callback.html#ae5ac84a1972e2ad66a54e42a58a375c8">   21</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_message_channel_callback.html#ae5ac84a1972e2ad66a54e42a58a375c8">onMessageSendUpdate</a>(<a class="code" href="class_j_c_message_channel_item.html">JCMessageChannelItem</a>* message) = 0;</div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="class_j_c_message_channel_callback.html#aea89432c0bd6eecad1417b21acb08e3d">   29</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_message_channel_callback.html#aea89432c0bd6eecad1417b21acb08e3d">onMessageRecv</a>(<a class="code" href="class_j_c_message_channel_item.html">JCMessageChannelItem</a>* message) = 0;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="class_j_c_message_channel_callback.html#ab0715175004e25de60aa1dea4a6329dd">   37</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_message_channel_callback.html#ab0715175004e25de60aa1dea4a6329dd">onMessageListRecv</a>(std::list&lt;JCMessageChannelItem*&gt;* messageList) = 0;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_j_c_message_channel_callback.html#a6f43546d1948aa46214f8477888987c9">   48</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_message_channel_callback.html#a6f43546d1948aa46214f8477888987c9">onRefreshConversation</a>(<span class="keywordtype">int</span> operationId, <span class="keywordtype">bool</span> result, std::list&lt;JCMessageChannelConversation*&gt;* conversationList, <a class="code" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga10456c3b286efb9ad031538ccbbdf093">JCMessageChannelReason</a> reason,</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        INT64 updateTime, <span class="keyword">const</span> <span class="keywordtype">char</span>* refreshServerUid) = 0;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="class_j_c_message_channel_callback.html#af87ff18b5760d11edbce3ba576ebcf11">   57</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_message_channel_callback.html#af87ff18b5760d11edbce3ba576ebcf11">onFetchMessageResult</a>(<span class="keywordtype">int</span> operationId, <span class="keywordtype">bool</span> result, <a class="code" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga10456c3b286efb9ad031538ccbbdf093">JCMessageChannelReason</a> reason) = 0;</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_j_c_message_channel_callback.html#ac13ab8c1bc42f7d35cda78a85aa89c2e">   65</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_message_channel_callback.html#ac13ab8c1bc42f7d35cda78a85aa89c2e">onMarkReadResult</a>(<span class="keywordtype">int</span> operationId, <span class="keywordtype">bool</span> result, <a class="code" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga10456c3b286efb9ad031538ccbbdf093">JCMessageChannelReason</a> reason) = 0;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_j_c_message_channel_callback.html#a2a12bcba5c6cf156c434820ccbdfaca5">   73</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_message_channel_callback.html#a2a12bcba5c6cf156c434820ccbdfaca5">onMarkRecvResult</a>(<span class="keywordtype">int</span> operationId, <span class="keywordtype">bool</span> result, <a class="code" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga10456c3b286efb9ad031538ccbbdf093">JCMessageChannelReason</a> reason) = 0;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_j_c_message_channel_callback.html#ac3d710f0bd89bfd2021a8cc748ee6ccf">   80</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_message_channel_callback.html#ac3d710f0bd89bfd2021a8cc748ee6ccf">onReceiveMarkRead</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* uid, INT64 serverMessageId) = 0;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_j_c_message_channel_callback.html#adec8d81fe806221d7fdbf7b5a40385a0">   87</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_message_channel_callback.html#adec8d81fe806221d7fdbf7b5a40385a0">onReceiveMarkRecv</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* uid, INT64 serverMessageId) = 0;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_j_c_message_channel_callback.html#afd4ec11e1fd62260028e1dedc8debb1d">   95</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_message_channel_callback.html#afd4ec11e1fd62260028e1dedc8debb1d">onDrawBackMessageResult</a>(<span class="keywordtype">int</span> operationId, <span class="keywordtype">bool</span> result, <a class="code" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga10456c3b286efb9ad031538ccbbdf093">JCMessageChannelReason</a> reason) = 0;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;};</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_j_c_message_channel_item_html"><div class="ttname"><a href="class_j_c_message_channel_item.html">JCMessageChannelItem</a></div><div class="ttdef"><b>Definition:</b> JCMessageChannelItem.h:12</div></div>
<div class="ttc" id="aclass_j_c_message_channel_callback_html_a6f43546d1948aa46214f8477888987c9"><div class="ttname"><a href="class_j_c_message_channel_callback.html#a6f43546d1948aa46214f8477888987c9">JCMessageChannelCallback::onRefreshConversation</a></div><div class="ttdeci">virtual void onRefreshConversation(int operationId, bool result, std::list&lt; JCMessageChannelConversation * &gt; *conversationList, JCMessageChannelReason reason, INT64 updateTime, const char *refreshServerUid)=0</div></div>
<div class="ttc" id="aclass_j_c_message_channel_callback_html_ab0715175004e25de60aa1dea4a6329dd"><div class="ttname"><a href="class_j_c_message_channel_callback.html#ab0715175004e25de60aa1dea4a6329dd">JCMessageChannelCallback::onMessageListRecv</a></div><div class="ttdeci">virtual void onMessageListRecv(std::list&lt; JCMessageChannelItem * &gt; *messageList)=0</div></div>
<div class="ttc" id="aclass_j_c_message_channel_callback_html_ac13ab8c1bc42f7d35cda78a85aa89c2e"><div class="ttname"><a href="class_j_c_message_channel_callback.html#ac13ab8c1bc42f7d35cda78a85aa89c2e">JCMessageChannelCallback::onMarkReadResult</a></div><div class="ttdeci">virtual void onMarkReadResult(int operationId, bool result, JCMessageChannelReason reason)=0</div></div>
<div class="ttc" id="aclass_j_c_message_channel_callback_html_afd4ec11e1fd62260028e1dedc8debb1d"><div class="ttname"><a href="class_j_c_message_channel_callback.html#afd4ec11e1fd62260028e1dedc8debb1d">JCMessageChannelCallback::onDrawBackMessageResult</a></div><div class="ttdeci">virtual void onDrawBackMessageResult(int operationId, bool result, JCMessageChannelReason reason)=0</div></div>
<div class="ttc" id="aclass_j_c_message_channel_callback_html_adec8d81fe806221d7fdbf7b5a40385a0"><div class="ttname"><a href="class_j_c_message_channel_callback.html#adec8d81fe806221d7fdbf7b5a40385a0">JCMessageChannelCallback::onReceiveMarkRecv</a></div><div class="ttdeci">virtual void onReceiveMarkRecv(const char *uid, INT64 serverMessageId)=0</div></div>
<div class="ttc" id="aclass_j_c_message_channel_callback_html_af87ff18b5760d11edbce3ba576ebcf11"><div class="ttname"><a href="class_j_c_message_channel_callback.html#af87ff18b5760d11edbce3ba576ebcf11">JCMessageChannelCallback::onFetchMessageResult</a></div><div class="ttdeci">virtual void onFetchMessageResult(int operationId, bool result, JCMessageChannelReason reason)=0</div></div>
<div class="ttc" id="agroup___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97_html_ga10456c3b286efb9ad031538ccbbdf093"><div class="ttname"><a href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga10456c3b286efb9ad031538ccbbdf093">JCMessageChannelReason</a></div><div class="ttdeci">JCMessageChannelReason</div><div class="ttdef"><b>Definition:</b> JCMessageChannelConstants.h:26</div></div>
<div class="ttc" id="aclass_j_c_message_channel_callback_html_aea89432c0bd6eecad1417b21acb08e3d"><div class="ttname"><a href="class_j_c_message_channel_callback.html#aea89432c0bd6eecad1417b21acb08e3d">JCMessageChannelCallback::onMessageRecv</a></div><div class="ttdeci">virtual void onMessageRecv(JCMessageChannelItem *message)=0</div></div>
<div class="ttc" id="aclass_j_c_message_channel_callback_html_a2a12bcba5c6cf156c434820ccbdfaca5"><div class="ttname"><a href="class_j_c_message_channel_callback.html#a2a12bcba5c6cf156c434820ccbdfaca5">JCMessageChannelCallback::onMarkRecvResult</a></div><div class="ttdeci">virtual void onMarkRecvResult(int operationId, bool result, JCMessageChannelReason reason)=0</div></div>
<div class="ttc" id="aclass_j_c_message_channel_callback_html_ac3d710f0bd89bfd2021a8cc748ee6ccf"><div class="ttname"><a href="class_j_c_message_channel_callback.html#ac3d710f0bd89bfd2021a8cc748ee6ccf">JCMessageChannelCallback::onReceiveMarkRead</a></div><div class="ttdeci">virtual void onReceiveMarkRead(const char *uid, INT64 serverMessageId)=0</div></div>
<div class="ttc" id="aclass_j_c_message_channel_callback_html"><div class="ttname"><a href="class_j_c_message_channel_callback.html">JCMessageChannelCallback</a></div><div class="ttdef"><b>Definition:</b> JCMessageChannelCallback.h:14</div></div>
<div class="ttc" id="aclass_j_c_message_channel_callback_html_ae5ac84a1972e2ad66a54e42a58a375c8"><div class="ttname"><a href="class_j_c_message_channel_callback.html#ae5ac84a1972e2ad66a54e42a58a375c8">JCMessageChannelCallback::onMessageSendUpdate</a></div><div class="ttdeci">virtual void onMessageSendUpdate(JCMessageChannelItem *message)=0</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
